import request from '../utils/request';
// 课程查询

export const getCourseService = (pageData) => {
    return request.get('/course/list',{params:pageData})
}
//根据老师id查询课程
export const getCourseByTeacherIdService = (teacherId) => {
    return request.get('/course/'+teacherId)
}

export const getByIdService = (couId) => {
    return request.get('/course/select/'+couId)
}
export const addCourseService = (data) => {
    return request.post('/course/add', data)
}

export const deleteService = (id) => {
    return request.delete('/course/'+id)
}

// 课程数据修改
export const updateService = (data) => {
    return request.put('/course/update', data)
}